package com.monkey4cloud.study.webfluxdemo002.model;

import lombok.*;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

@Data
@Document(collection = "article")  // mongodb映射表
@NoArgsConstructor
@AllArgsConstructor
@Builder
@With
public class Article {

    @Id
    private Long id;
    private String author;
    private String title;
    private String text;
}
